package com.game.beans;

import com.game.GameWindow;
import com.game.utils.GameUtils;

import java.awt.*;
import java.awt.image.BufferedImage;

public class ShellBean extends GameBean{
    public ShellBean() {
        super();
    }

    public ShellBean(BufferedImage img, int x, int y, double speed) {
        super(img, x, y, speed);
    }

    public ShellBean(BufferedImage img, int x, int y, int width, int height, double speed, GameWindow frame) {
        super(img, x, y, width, height, speed, frame);
    }

    @Override
    public void paintSelf(Graphics graphics) {
        super.paintSelf(graphics);
        y += speed;

        if (y < 0 ){
            super.remove(-50,-50);
        }
    }

    @Override
    public Rectangle getRectangle() {
        return super.getRectangle();
    }
}
